package org.fastsyncer.connector.database.sqlbuilder;

import org.fastsyncer.connector.config.DatabaseConfig;
import org.fastsyncer.connector.database.Database;

import java.util.List;

/**
 * SQL生成器
 *
 * @author AE86
 * @version 2.0.0
 * @date 2019/9/26 23:49
 */
public interface SqlBuilder {

    /**
     * 生成SQL
     * @param config
     * @param table
     * @param filedNames
     * @param queryFilter
     * @param database
     * @return
     */
    String buildSql(DatabaseConfig config, String table, List<String> filedNames, String queryFilter, Database database);

}
